package com.pzhu.dormitory.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 寝室
 *
 * @author
 * @email
 * @date 2021-05-02 15:20:05
 */
@Data
@ToString
@TableName("room")
@ApiModel(value = "Room对象", description = "寝室")
public class RoomEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 寝室名
     */
    @ApiModelProperty(value = "寝室名")
    private String name;
    /**
     * 寝室楼id
     */
    @ApiModelProperty(value = "寝室楼id")
    private Long buildingId;

}
